package com.fhzn.boss.enums;

import lombok.Getter;

/**
 * @author fhzn
 */
@Getter
public enum CommonStatusEnum {

    /**
     * 启用
     */
    ENABLE(1),

    /**
     * 禁用
     */
    DISABLED(2);

    private final int status;

    CommonStatusEnum(int status) {
        this.status = status;
    }

    public static boolean contains(int status) {
        for (CommonStatusEnum tmp : CommonStatusEnum.values()) {
            if (tmp.getStatus() == status) {
                return true;
            }
        }
        return false;
    }

}
